package com.derbysoft.nuke.configkeeper.handler;

import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.derbysoft.nuke.configkeeper.api.ApiGatewayResponse;

import java.util.Map;

public class PingHandler implements RequestHandler<Map<String, Object>, ApiGatewayResponse> {
    @Override
    public ApiGatewayResponse handleRequest(Map<String, Object> stringObjectMap, Context context) {
        return ApiGatewayResponse.builder()
                .setObjectBody("OK")
                .build();
    }
}
